package com.work.cos.service.impl.pr;

import org.springframework.stereotype.Service;

import com.work.cos.domain.entity.pr.PrCartProductEntity;
import com.work.cos.mapper.pr.PrCartProductMapper;
import com.work.cos.service.impl.BaseServiceImpl;
import com.work.cos.service.interfc.pr.IPrCartProductService;

@Service
public class PrCartProductServiceImpl extends BaseServiceImpl<PrCartProductMapper, PrCartProductEntity> implements IPrCartProductService{

	@Override
	public PrCartProductEntity findCartProduct(Long userId, Long productId) {
		return baseMapper.findCartProduct(userId, productId);
	}

	@Override
	public boolean updateNumer(PrCartProductEntity entity) {
		return baseMapper.updateNumer(entity) > 0;
	}

	@Override
	public boolean deleteByCheck(PrCartProductEntity entity) {
		return baseMapper.deleteByCheck(entity) > 0;
	}

	
}
